// 导入
import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";
import { BrowserRouter as Router } from "react-router-dom";

// 创建root对象
const root = ReactDOM.createRoot(
  document.getElementById("root") as HTMLElement
);

// 渲染
root.render(
  <Router>
    <App />
  </Router>
);
